package net.zjitc.list.doubleLinked;

public class DoubleNode<T> {
    T data;
    DoubleNode next;
    DoubleNode prev;

    public DoubleNode() {
    }

    public DoubleNode(T data, DoubleNode next, DoubleNode prev) {
        this.data = data;
        this.next = next;
        this.prev = prev;
    }

    public DoubleNode(T data) {
        this.data = data;
    }

    public DoubleNode(T data, DoubleNode next) {
        this.data = data;
        this.next = next;
    }

    public DoubleNode(DoubleNode prev, T data) {
        this.data = data;
        this.prev = prev;
    }

}
